from django.contrib import admin
from app2.models import Category,Ads

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('name','sort')
    exclude = ['entrycount','post_keys']
    pass

class AdsAdmin(admin.ModelAdmin):
    list_display = ('name',)
    pass

admin.site.register(Category, CategoryAdmin)
admin.site.register(Ads, AdsAdmin)
